package com.job.springsea.work0709;

/**
 * @author 于春海
 * @version 1.0
 * @since 2022-07-09 19:55:37
 */
public class Person {
    protected String name;
    protected int age;
    protected void sleep(){
        System.out.println("睡觉");
    }
    protected void eat(){
        System.out.println("吃饭");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Person() {
    }
}